package com.itcc.service.impl;

import com.itcc.dao.CustomerDao;
import com.itcc.domain.Customer;
import com.itcc.domain.CustomerInfo;
import com.itcc.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService{

    @Autowired
    private CustomerDao customerDao;

    public List<Customer> selectCustomer() {
        return customerDao.selectCustomer();
    }

    public String selectTelByName(String ctm_name) {
        return customerDao.selectTelByName(ctm_name);
    }

    public boolean inertCustomer(Customer customer) {
       return customerDao.inertCustomer(customer);
    }

    public boolean insertCustomer_info(CustomerInfo customerInfo) {
        return customerDao.insertCustomer_info(customerInfo);
    }

    public String selectProfile(String username) {
        return customerDao.selectProfile(username);
    }
}
